	/**
	 *
	 * @author	Daniel Bergqvist 900203-2432
	 * @author	Marika Hansson 910305-0804
	 * @version second submission
	 * 
	 */
public class TestUppg1 {

	static Uppg1 list = new Uppg1();

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//This is some of the test we did, rest where removed under the working of the class.
		System.out.println(""+list);
		list.addFirst("a");
		list.addFirst("b");
		list.addFirst("c");
		list.addFirst("d");
		list.get(5);
		System.out.println(""+list);
		System.out.println("*" + list + "# now a,b,c,d added to the list with addfirst() method");
		System.out.println("Searching for 'b' with list.exist() method, it should give place number two (where 0 is last added element): "+list.exist("b"));
		System.out.println("*" + list + "# now method list.getfirst should give last added element (it should be d): "+ list.getFirst());
		System.out.println("*" + list + "# now we set the pointer to position 2 and get that value, that would be b: " + list.get(2));
		
		System.out.println("now we check if there is any next value, when pointer is 0, it should be true: " + list.hasNext());
		
		list.moveP(20);
		System.out.println("now we set the pointer to 20(its last position in array) it should be false: " + list.hasNext());
		
	

	}

}
